//
// Decompiled by Jadx - 385ms
//
package gc;

import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import de.robv.android.xposed.XC_MethodHook;
import fn.j;
import fn.y;

public final class az extends XC_MethodHook {
    public final void afterHookedMethod(XC_MethodHook.MethodHookParam methodHookParam) throws Throwable {
        int cd;
        super.afterHookedMethod(methodHookParam);
        Object[] objArr = methodHookParam.args;
        if (objArr.length > 0) {
            Object obj = objArr[0];
            if ((obj instanceof Integer) && ((Integer) obj).intValue() == j.ar("layout", "c_ct_long_click_menu_item_single") && (cd = y.cd(0, "long_image_size")) >= 1) {
                View view = (View) methodHookParam.getResult();
                TextView textView = (TextView) view.findViewById(j.ar("id", "textview"));
                textView.setTextSize(11.0f);
                textView.setSingleLine(true);
                textView.setEllipsize(TextUtils.TruncateAt.END);
                textView.setPadding(8, 0, 8, 0);
                textView.setGravity(17);
                ViewGroup.LayoutParams layoutParams = textView.getLayoutParams();
                layoutParams.width = -2;
                textView.setLayoutParams(layoutParams);
                ImageView imageView = (ImageView) view.findViewById(j.ar("id", "c_ct_long_click_icon"));
                ViewGroup.LayoutParams layoutParams2 = imageView.getLayoutParams();
                layoutParams2.width = cd;
                layoutParams2.height = cd;
                imageView.setLayoutParams(layoutParams2);
            }
        }
    }
}
